<?
$conn=mysql_connect("localhost", "root", "root") or die("can't connect database");
mysql_select_db("it3",$conn);
$sql="select * from user";
$query=mysql_query($sql);
if(mysql_num_rows($query) == 0)
{
echo "Chua co du lieu";
}
else
{
while($row=mysql_fetch_array($query))
{
echo $row[IDSV] ." - ".$row[ho ten]."  - ".$row[diachi]. "- ".$row[sdt]." - ".$row[ngaysinh].<br />";
}
}
mysql_close($conn);
?>